//应用端eip-front的request
import request from '@/utils/request'

//管理端manage的request，如果在管理端使用则使用下面两行代码
//import req from '@/request.js'
//const request = req.request

const baseUrl = `${window.context.project}/wBdkj/v1`;

export default {
  loadData(data) {
    return request({
      url: `${baseUrl}/query`,
      method: 'post',
      data,
    })
  },
  getDetail(id) {
    return request({
      url: `${baseUrl}/getDetail?id=${id}`,
    })
  },
  save(data) {
    return request({
      url: `${baseUrl}/save`,
      method: 'post',
      data,
    })
  },
  deleteByIds(ids) {
    return request({
      method: 'delete',
      url: `${baseUrl}/?ids=${ids}`,
    })
  }
}